<%@ include file="/common/taglibs.jsp"%>

<head>
<title><fmt:message key="copyrightRegisterationDetail.title" /></title>
<meta name="heading"
	content="<fmt:message key='copyrightRegisterationDetail.heading'/>" />
</head>

<c:set var="delObject" scope="request">
	<fmt:message key="copyrightRegisterationList.copyrightRegisteration" />
</c:set>
<script type="text/javascript">
	var msgDelConfirm = "<fmt:message key="delete.confirm"><fmt:param value="${delObject}"/></fmt:message>";
</script>

<%-- <div class="span2">
	<h2>
		<fmt:message key="copyrightRegisterationDetail.heading" />
	</h2>
	<fmt:message key="copyrightRegisterationDetail.message" />
</div> --%>

<div class="span7">
	<s:form id="copyrightRegisterationForm"
		action="saveCopyrightRegisteration" method="post" validate="true"
		cssClass="well form-horizontal" theme="bootstrap"
		label="%{getText('copyrightRegisterationDetail.heading')}">
		<s:hidden key="copyrightRegisteration.id" />
		<s:textfield key="copyrightRegisteration.serialNum" required="false"
			maxlength="255" readonly="true" />
		<s:textfield key="copyrightRegisteration.copyrighter" required="false"
			maxlength="250" />
		<s:textfield key="copyrightRegisteration.productName" required="false"
			maxlength="100" readonly="true" />
		<s:textfield key="copyrightRegisteration.contact" required="false"
			maxlength="100" />
		<s:textfield key="copyrightRegisteration.phoneNum" required="false"
			maxlength="40" />
		<s:textfield key="copyrightRegisteration.mobileNum" required="false"
			maxlength="40" />
		
		<s:textfield key="copyrightRegisteration.email" required="false"
			maxlength="50" />
		
		<s:textfield key="copyrightRegisteration.registDate" required="false"
			maxlength="20" readonly="true" />

		<div id="actions" class="form-actions">
			<s:submit type="button" cssClass="btn btn-primary" method="save"
				key="button.save" theme="simple">
				<i class="icon-ok icon-white"></i>
				<fmt:message key="button.save" />
			</s:submit>
			<%-- <c:if test="${not empty copyrightRegisteration.id}">
				<s:submit type="button" cssClass="btn btn-warning" method="delete"
					key="button.delete" onclick="return confirmMessage(msgDelConfirm)"
					theme="simple">
					<i class="icon-trash icon-white"></i>
					<fmt:message key="button.delete" />
				</s:submit>
			</c:if> --%>
			<s:submit type="button" cssClass="btn" method="cancel"
				key="button.cancel" theme="simple">
				<i class="icon-remove"></i>
				<fmt:message key="button.cancel" />
			</s:submit>
		</div>
	</s:form>
</div>

<script type="text/javascript">
	$(document).ready(
			function() {
				$("input[type='text']:visible:enabled:first",
						document.forms['copyrightRegisterationForm']).focus();
			});
</script>
